why ireland split into the republic of ireland